home *** CD-ROM | disk | FTP | other *** search
- Path: telepost.no!usenet
- From: Carsten Arnholm <ca@sesam.dnv.no>
- Newsgroups: comp.lang.c++,comp.lang.fortran
- Subject: Re: Calling FORTRAN from C++
- Date: 8 Jan 1996 16:22:24 GMT
- Organization: DNV
- Message-ID: <4crgc1$43u@nms.telepost.no>
- References: <4cr9np$2hr$1@mhadg.production.compuserve.com>
- NNTP-Posting-Host: hugin.sesam.dnv.no
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.1 (Windows; I; 32bit)
-
- Steve Harris <100016.2166@CompuServe.COM> wrote:
- >Hello,
- >Can anyone provide me with a simple example, with source code and
- >an 'idiots' step guide, on how to call FORTRAN code from MS
- >VISUAL C++? I have read through the section on mixed language
- >programming in the 'Programming Techniques' manual for MS VISUAL
- >C++, but can't even get the examples in that text to work. When I
- >issue the following command to link the two object files:
- >
- > link small test,,,,
- >
- >I get the following errror:
- >
- > test.obj : fatal error L1101 : invalid object module
- > Object file offset : 1 Record type : 4c
- >
- >A simple working example of a few lines would be much
- >appreciated, especially showing how to compile/link and call the
- >FORTRAN code from C++.
- >Thanks for your time :-)
- >Steve Harris
-
-
- Hi there,
-
- I've done that. It is not so difficult. If you use the DejaNews search
- facility at
-
- http://www.dejanews.com/forms/dnq.html
-
- and search for my name : arnholm
-
- you will find references to discussions I have participated in, some of
- which will answer your question.
-
- Good luck :=]
-
- Carsten Arnholm
- ca@sesam.dnv.no
-
-